package com.dsg.entity.coupon;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.Version;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 回赠油券资料
 * </p>
 *
 * @author system
 * @since 2020-07-25
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("dsg_coupon_return")
@ApiModel(value = "DsgCouponReturn对象", description = "回赠油券资料")
public class DsgCouponReturn implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主鍵")
    @TableId("OID")
    private String oid;

    @ApiModelProperty(value = "回赠油券设置ID")
    @TableField("SET_ID")
    private String setId;

    @ApiModelProperty(value = "企業編碼")
    @TableField("ENT_CODE")
    private String entCode;

    @ApiModelProperty(value = "油券编码")
    @TableField("COUPON_CODE")
    private String couponCode;

    @ApiModelProperty(value = "客戶編號")
    @TableField("CUS_NO")
    private String cusNo;

    @ApiModelProperty(value = "回赠金额")
    @TableField("RET_AMOUNT")
    private BigDecimal retAmount;

    @ApiModelProperty(value = "余额")
    @TableField("BAL_AMOUNT")
    private BigDecimal balAmount;

    @ApiModelProperty(value = "生效日期")
    @TableField("EFF_DATE")
    private Date effDate;

    @ApiModelProperty(value = "失效日期")
    @TableField("EXP_DATE")
    private Date expDate;

    @ApiModelProperty(value = "備註")
    @TableField("REMARKS")
    private String remarks;

    @ApiModelProperty(value = "創建人")
    @TableField("CREATER")
    private String creater;

    @ApiModelProperty(value = "創建時間")
    @TableField("CREATE_TIME")
    private Date createTime;

    @ApiModelProperty(value = "更新人")
    @TableField("UPDATER")
    private String updater;

    @ApiModelProperty(value = "更新時間")
    @TableField("UPDATE_TIME")
    private Date updateTime;

    @ApiModelProperty(value = "核對狀態")
    @TableField("VERIFY")
    private Integer verify;

    @Version
    @ApiModelProperty(value = "版本號")
    @TableField("VERSION")
    private int version;

    @ApiModelProperty(value = "開始生效日期")
    @TableField(exist = false)
    private String beginEffDate;

    @ApiModelProperty(value = "結束生效日期")
    @TableField(exist = false)
    private String endEffDate;

    @ApiModelProperty(value = "開始失效日期")
    @TableField(exist = false)
    private String beginExpDate;

    @ApiModelProperty(value = "結束失效日期")
    @TableField(exist = false)
    private String endExpDate;

    @ApiModelProperty(value = "開始創建時間")
    @TableField(exist = false)
    private String beginCreateTime;

    @ApiModelProperty(value = "結束創建時間")
    @TableField(exist = false)
    private String endCreateTime;
}
